import {defineStore} from 'pinia'
import {sdControllerApi} from '@/api/sd/sdController.api'
import {menuController} from "@/api";


export const usrSdStore = defineStore('sd-store', {

    actions: {
        async generateImg(state: SD.Txt2ImgInput){
           return await sdControllerApi.generateText2Img(state);
        },
        checkTask(taskId: string){
            sdControllerApi.checkTask(taskId).then((res: any) => {
                console.log(res);
                return res.data;
            })
        }
    },

})

